<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<style>
  #d1{
    width: 1000px;
    height: 100px;
    background-color: red;
    position: fixed;
    top: 0;
  }
  body{
    padding-top: 90px;
  }
  #d2{
    top: 500px;
    right: 550px;
    width: 50px;
    height: 200px;
    background-color: blue;
    position: fixed;
  }
</style>
<body>
<div id="d1"></div>
<div id="d2"></div>
<img src="../2.jpg" alt="">
<img src="../2.jpg" alt="">
<img src="../2.jpg" alt="">
<img src="../2.jpg" alt="">
<img src="../2.jpg" alt="">
<img src="../2.jpg" alt="">
<img src="../2.jpg" alt="">

</body>
</html>